package flyweight;

/**
 * @Author: Doream
 * @Date: 2022/1/28 22:26
 */
public class Client {
    public static void main(String[] args) {
        AbstratBox i = BoxFactory.getInstance().getShape("I");
        i.display("灰色");
        AbstratBox l = BoxFactory.getInstance().getShape("L");
        l.display("红色");
        AbstratBox o = BoxFactory.getInstance().getShape("O");
        o.display("蓝色");
    }
}
